package gof_001_创建型_Create.gof_001_单例_Singleton.gof_010_Reflect;

/**
 * 静态内部类
 */
public class User {

    private User(){
    }

    public static User getInstance() {
        User user = Inner.USER;
        return user;
    }

    private static class Inner{
        private static final User USER = new User();
    }
}
